package com.core.gui.helper;

import java.util.List;

import com.core.entities.Contact;

public class ContactHelper {
	public ContactHelper(){
		
	}
	public static String[] getHeaders(){
		return new String[]{"ID","Name","Mobile Phone","Email"};
	}
	public static Object[][] getContacts(List<Contact> contacts){
		Object[][] data = new Object[contacts.size()][];
		int index = 0;
		for(Contact cont : contacts)
		{
			data[index++]= new Object[]{cont.getId(),cont.getFirstName()+" "+cont.getSecondName()+" "+cont.getLastName()+" "+cont.getLastName(),
					cont.getMobileNumber(),cont.getEmail()};
		}
	return data;	
		
	}

}
